<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../template/taglib.jsp" %>
<jsp:include page="../template/header.jsp" />
<jsp:include page="../template/adminmenu.jsp" />
<%-- content template --%>
<jsp:include page="../template/contentheader.jsp" />
<%-- put content here --%>
<link rel="stylesheet"
	href="../calendar/zapatec/zpcal/themes/winter.css" />
<script type="text/javascript"
	src="../calendar/zapatec/zpcal/utils/zapatec.js"></script>
<script type="text/javascript"
	src="../calendar/zapatec/zpcal/src/calendar.js"></script>
<script type="text/javascript"
	src="../calendar/zapatec/zpcal/lang/calendar-en.js"></script>
<link href="/css/style.css" rel="stylesheet" type="text/css"/>
<fmt:setBundle basename="admin" />
<c:set var="t" value="true" />
<h2>
	<fmt:message key="lable.ManagePublicHoliday" />
</h2>
<form action="/LeaveApplicationProcessingSystem/AdminPublicHoliday" method="post">
<table cellpadding="4" cellspacing="2" border="0">
	<tr>
		<td>
			<fmt:message key="lable.ManagePublicHoliday" />
		</td>
		<td>
			<c:if test="${param['insert']==t}">
				<input type="text" name="holidayName" value="${param['name']}" size=15 maxlength=20>
				<input type="hidden" name="type" value="insert" />
			</c:if>
			<c:if test="${param['update']==t}">
				<input type="text" name="holidayName" value="${param['name']}" size=15 maxlength=20 >
				<input type="hidden" name="type" value="update" />
				<input type="hidden" name="id" value="${ param.id }" />
			</c:if>
		</td>
		</tr>
		<tr>
			<td><fmt:message key="label.PublicHoliday.HolidayDate"/></td>
					<td>
					<input type="text" name="holidayDate" value="${param['date']}" id="calendar1" maxlength="400" size="15" style="background-color: rgb(255, 255, 160);" readonly="readonly" />
					<button id="trigger1">...</button>
					<script type="text/javascript">//<![CDATA[
					      Zapatec.Calendar.setup({
					        firstDay          : 1,
					        electric          : false,
					        inputField        : "calendar1",
					        button            : "trigger1",
					        ifFormat          : "%Y-%m-%d",
					        daFormat          : "%Y-%m-%d"
					      });
					    //]]>  
					</script>				
					</td>

	</tr>
	<tr>
		<td>
		<input type="submit" value="Submit"> 
		<input type="reset" value="Reset">
		</td>
	</tr>
</table>
</form>
<jsp:include page="../template/contentfooter.jsp" />
<%-- end of content template --%>

<jsp:include page="../template/footer.jsp" />